package com.dog.basics.api.controller.mtkj;


import com.dog.basics.bean.vo.api.mtkj.ApiHospitalCostVo;
import com.dog.basics.common.constant.SwaggerConstants;
import com.dog.basics.common.util.R;
import com.dog.basics.service.mtkj.IMtDeviceHospitalCostService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 医院费用 前端控制器
 * </p>
 *
 * @author wph
 * @since 2020-09-29
 */
@RestController
@RequestMapping("/api/device/hospital/cost")
@Api(value = "医院费用模块", tags = SwaggerConstants.API_ALL)
@AllArgsConstructor
public class MtDeviceHospitalCostController {
    private final IMtDeviceHospitalCostService mtDeviceHospitalCostService;

    /**
     * @Description: 收费标准
     * @Param: HospitalCostFromDto
     * @return: IPage<HospitalCostVo>
     * @Author: wph
     * @Date:
     */

    @ApiOperation(value = "收费标准", notes = "收费标准", tags = SwaggerConstants.API_SHOUFEIBIAOZHUN)
    @ApiImplicitParam(value = "医院ID", name = "id", dataType = "Long", required = true)
    @GetMapping("/{id}")
    public R<ApiHospitalCostVo> getApiObjXq(@PathVariable("id") Long id) {
        return R.ok(mtDeviceHospitalCostService.getApiObjXq(id));
    }

}
